
<!-- <?php echo $_CTL_ID; ?> -->

<div id="<?php echo $_CTL_ID; ?>" class="box">

  <?php if (empty($user['username'])): ?>

  <h4 class="yellow">用户控制面板</h4>

  <div class="box-cnt">
    <ul>
      <li>
        <a class="icn_login" href="<?php echo $login_url; ?>">登录后发布项目和应用展示</a>
      </li>
      <li>
        <a class="icn_register" href="<?php echo $register_url; ?>">注册为社区成员</a>
      </li>
    </ul>
  </div>

  <?php else: ?>
  
  <h4 class="yellow"><?php echo h($user['username']); ?> - 控制面板</h4>

  <div class="box-cnt">
    <ul>
      <li>
        <a class="icn_my_projects" href="<?php echo url('projects/index', array('type' => 'member', 'key' => $user['username'])); ?>">我的开源项目</a>
        [<a class="icn_add_project" href="<?php echo url('projects/create'); ?>">添加</a>]
</li>
      <li>
        <a class="icn_my_cases" href="<?php echo url('cases/index', array('type' => 'member', 'key' => $user['username'])); ?>">我的应用展示</a>
        [<a class="icn_add_case" href="<?php echo url('cases/create'); ?>">添加</a>]
      </li>
    </ul>
  </div>
  
  <?php endif; ?>

</div>

<!-- /<?php echo $_CTL_ID; ?> -->



